<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php echo $view_title?></title>
	<link rel=stylesheet href='./template/<?php echo $OJ_TEMPLATE?>/<?php echo isset($OJ_CSS)?$OJ_CSS:"hoj.css" ?>' type='text/css'>
</head>
<body>
<script type="text/javascript" src="include/wz_jsgraphics.js"></script>
<script type="text/javascript" src="include/pie.js"></script>
<script type="text/javascript" src="include/jquery-latest.js"></script> 
<script type="text/javascript" src="include/jquery.tablesorter.js"></script> 

<div id="wrapper">
	<?php require_once("oj-header.php");?>
<div id=main>

<div class="container">
        <div class="row">
		
<div class="col-sm-3">
<ul class="nav nav-pills nav-stacked">
     
	<?php 
			foreach($view_problem as $row){
			    echo "<li>";
				$cnt=0;
				foreach($row as $table_cell){
					$cnt++;
					if($cnt==1)echo "<a>".$table_cell."<span class='badge pull-right'>";
					else echo $table_cell."</span></a>";
				}
				echo "</li>";
			}
	?>
    </ul>
</div>

<div class="col-sm-9">
<table class="table table-striped">
	<thead>
		<tr>
            <th>名次</th>
            <th>编号</th>
            <th>用户</th>
			<th>内存</th>
            <th>耗时</th>
            <th>语言</th>
			<th>代码长度</th>
            <th>提交时间</th>
		</tr>
    </thead>
	<tbody>
	<?php 
			$cnt=0;
			foreach($view_solution as $row){
				if ($cnt) 
					echo "<tr class='oddrow'>";
				else
					echo "<tr class='evenrow'>";
				foreach($row as $table_cell){
					echo "<td>";
					echo "\t".$table_cell;
					echo "</td>";
				}
				
				echo "</tr>";
				
				$cnt=1-$cnt;
			}	
	?>
	</tbody>
</table>

	
	

	<?php/*
	echo "<a href='problemstatus.php?id=$id'>[TOP]</a>";
	echo "  <a href='status.php?problem_id=$id'>[STATUS]</a>";
	if ($page>$pagemin){
		$page--;
		echo "  <a href='problemstatus.php?id=$id&page=$page'>[PREV]</a>";
		$page++;
	}
	if ($page<$pagemax){
		$page++;
		echo "  <a href='problemstatus.php?id=$id&page=$page'>[NEXT]</a>";
		$page--;
	}
	*/
	?>

	
<div id=foot>
	<?php require_once("oj-footer.php");?>

</div><!--end foot-->
</div><!--end main-->
</div><!--end wrapper-->
</body>
</html>
